package com.azure.mapper.report;

import com.azure.entity.ACategoryDailyReport;
import com.azure.entity.ACategoryMonthlyReport;
import com.azure.entity.ACategoryMonthlyReportExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ACategoryMonthlyReportMapper {
    int countByExample(ACategoryMonthlyReportExample example);

    int deleteByExample(ACategoryMonthlyReportExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ACategoryMonthlyReport record);

    int insertSelective(ACategoryMonthlyReport record);

    List<ACategoryMonthlyReport> selectByExample(ACategoryMonthlyReportExample example);

    ACategoryMonthlyReport selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ACategoryMonthlyReport record, @Param("example") ACategoryMonthlyReportExample example);

    int updateByExample(@Param("record") ACategoryMonthlyReport record, @Param("example") ACategoryMonthlyReportExample example);

    int updateByPrimaryKeySelective(ACategoryMonthlyReport record);

    int updateByPrimaryKey(ACategoryMonthlyReport record);

    @Select("select * from a_category_monthly_report where date >= #{date}")
    List<ACategoryMonthlyReport> getMonthlyCategoryData(@Param("date")String date);
}